<?php

class Default_Model_Theloai2 extends Zend_Db_Table_Abstract {

    public $_name = 'theloai2';
    public $_primary = 'matl2';

    public function getAll() {
        $se = $this->select();
        return $this->fetchAll($se)->toArray();
    }
    
    public function getAllTheLoai2($id_tl1){
        $se = $this->select()
              ->where('matl1=?',$id_tl1);
        return $this->fetchAll($se)->toArray();
    }

}

